﻿using IconYuan.Model.Products;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IconYuan.Model.DTO.Orders
{
    public class CheckOrderDto 
    {
        /// <summary>
        /// 会员id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int goodsId { get; set; }
        /// <summary>
        /// 商品sku id, 格式: 100_101
        /// </summary>
        public string goodsSkuId { get; set; } = string.Empty;
        /// <summary>
        /// 购买数量
        /// </summary>
        public int buyCount { get; set; } = 1;

        /// <summary>
        /// 自提门店ID
        /// </summary>
        public int shopId { get; set; } = 0;
        /// <summary>
        /// 优惠券ID
        /// </summary>
        public int couponId { get; set; } = 0;
        /// <summary>
        /// 是否使用积分抵扣（1使用 0不使用）
        /// </summary>
        public int isUsePoints { get; set; } = 0;
        /// <summary>
        /// 配送方式（10快递配送 30上门自提）
        /// </summary>
        public int delivery { get; set; } = 10;

        ///// <summary>
        ///// 结算模式（buyNow立即购买 cart购物车）
        ///// </summary>
        //public string mode { get; set; } = string.Empty;
        ///// <summary>
        ///// 购物车id
        ///// </summary>
        //public string cartIds { get; set; } = string.Empty;
    }

    public class SubmitCheckDto
    {
        /// <summary>
        /// 商品id
        /// </summary>
        public int goods_id { get; set; }
        public int user_id { get; set; }
        /// <summary>
        /// 检查类型:1 是否有正在进行的相同订单， 2 vip是否过期
        /// </summary>
        public int checktype { get; set; }
    }

}